* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

#wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  margin-bottom: 30px;
}

#page-banner {
  background: linear-gradient(135deg, #4a6fa5 0%, #166bb3 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.title {
  margin-bottom: 10px;
}

#page-banner h1.title {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

#page-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* 搜索框样式 */
#search-books input {
  width: 80%;
  max-width: 500px;
  padding: 12px 15px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-books input:focus {
  width: 85%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图书列表样式 */
#book-list {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#book-list h2.title {
  color: #4a6fa5;
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f4f8;
}

#book-list ul {
  list-style: none;
}

#book-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f9fafc;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#book-list li:hover {
  background: #f0f4f8;
  transform: translateX(5px);
}

.name {
  font-size: 1.1rem;
  color: #333;
}

.delete {
  color: #e74c3c;
  background: transparent;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.delete:hover {
  background: #e74c3c;
  color: white;
}

/* 添加图书表单样式 */
#add-book {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

#add-book input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4a6fa5;
}

#add-book label[for="hide"] {
  cursor: pointer;
  color: #666;
}

#add-book input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#add-book input[type="text"]:focus {
  border-color: #4a6fa5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

#add-book button {
  background: #4a6fa5;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#add-book button:hover {
  background: #3a5d8c;
  transform: translateY(-2px);
}

/* 标签页样式 */
footer {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tabs {
  display: flex;
  list-style: none;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f4f8;
}

.tabs li {
  padding: 10px 20px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #666;
}

.tabs li.active {
  background: #4a6fa5;
  color: white;
}

.tabs li:hover:not(.active) {
  background: #f0f4f8;
  color: #333;
}

.panel {
  display: none;
  padding: 10px 0;
}

.panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.panel p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  #page-banner h1.title {
    font-size: 2rem;
  }

  #add-book {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs li {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}
